#!/bin/bash

NAME=helloworld

while getopts "n:" opt; do
  case $opt in
    n)
        NAME=$OPTARG
        ;;
    \?)
        echo "invalid arg"
        exit 1
        ;;
  esac
done

docker run --rm --name ${NAME} hello-world